import request from "@/utils/axios";

// 分页查询所有标本，带模糊查询
const allTableData = (data) =>
  request({
    url: "/base/specimen/page",
    method: "post",
    data,
  });

// 新增标本
const addSpecimen = (data) =>
  request({
    url: "/base/specimen/save",
    method: "post",
    data,
  });

// 编辑标本
const editorSpecimen = (data) =>
  request({
    url: "/base/specimen/update",
    method: "post",
    data,
  });

// 删除标本
const delSpecimen = (id) =>
  request({
    url: `/base/specimen/delete/${id}`,
    method: "delete",
  });

export { allTableData, addSpecimen, editorSpecimen, delSpecimen };
